Repository navigation
Hub dataset hosts, model FILE= and fragment advice - #653
Merged
Merged
Conversation
- hub_dataset_page() accepts every Hub host (hf.co, www., any case) through a new public hub_areas.is_hub_host(), so a dataset page on hf.co and the same bare id fold into one dataset, and dataset_merge no longer flags the two spellings as a conflict. - A model file's warnings keep the path as read (logged_path, set before lone surrogates are written as text), so the assembly-stage text-unsafe line gives the same FILE= as the reader's lines. - The CLI twin of field-not-recordable/fragment names `loom model --enrich`, which records the location; `loom enrich --enrich` does not. Message reference and skill quotes regenerated. Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #653 +/- ##
=======================================
Coverage 99.98% 99.98%
=======================================
Files 545 545
Lines 35697 35708 +11
Branches 5028 5028
=======================================
+ Hits 35690 35701 +11
Misses 4 4
Partials 3 3 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
- HUB_HOST_PATTERN carries inline ASCII and case-insensitive flags, and every Hub URL regex uses HUB_URL_FLAGS (IGNORECASE | ASCII), so U+0131/U+0130 no longer match "i" and U+017F no longer matches "s": huggıngface.co is no Hub host for dataset pages, model URLs, Git areas or dataset_merge. - git_url uses is_hub_host for its host checks; only the .search keeps a regex built from the shared pattern. - scrub() replaces every path spelling, the written FILE= value first, in one pass, so a reader's already-quoted FILE= is not quoted again in a relayed dataset-conflict line. - Docs: ASCII-case host wording; rewrap an over-long line. Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
Signed-off-by: Arthit Suriyawongkul <arthit@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Three fixes from the 0.25.2 combined review (#650/#647 follow-ups).
hf.co,www., any case) is located and folds with its bare id;dataset_mergeno longer flags the two spellings. Newcore.hub_areas.is_hub_host.text-unsafeused an already surrogate-escaped path (AiModelFormatInfo.logged_path).field-not-recordable/fragmentCLI advice namesloom model --enrich, which records it (loom enrich --enrichdoes not).No CHANGELOG entry (unreleased behaviour).
Generated by Claude Code